import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)



// 路由懒加载
const PartOne = () => import('@/components/PartOne');
const PartThree = () => import('@/components/PartThree');
const PartFour = () => import('@/components/PartFour');
const PartFive = () => import('@/components/PartFive');
const PartSix = () => import('@/components/PartSix');
const PartSeven = () => import('@/components/PartSeven');

export default new Router({
  routes: [
    {
      path: '/',
      components: {
        PartOne,
        PartThree,
        PartFour,
        PartFive,
        PartSix,
        PartSeven
      }
    },
    // {
    //   path: '/PartThree',
    //   name: 'PartThree',
    //   component: PartThree
    // },
    // {
    //   path: '/PartFour',
    //   name: 'PartFour',
    //   component: PartFour
    // },
    // {
    //   path: '/PartFive',
    //   name: 'PartFive',
    //   component: PartFive
    // },
    // {
    //   path: '/PartSix',
    //   name: 'PartSix',
    //   component: PartSix
    // },
    // {
    //   path: '/PartSeven',
    //   name: 'PartSeven',
    //   component: PartSeven
    // },
    // {
    //   path: '*',
    //   redirect: '/'
    // }
  ]
})